<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>全球新型冠状病毒实时数据统计</title>
</head>
<body>
<div style="text-align: center">
    <div>
        <form action="/index.html" >
            <input type="text" placeholder="输入国家或者省份" name="key" style="width: 20%; font-size: 15px;"/>
            <input type="submit" style="font-size: 15px;" value="提交"/>
        </form>
    </div>

    <div>
        <table  align="center">
            <tr>
                <th width="20%">国家</th>
                <th width="20%">省/州</th>
                <th width="20%">累计确诊人数</th>
                <th width="20%">日增长人数</th>
            </tr>
            <tr th:each="Coddata : ${codList}">
                <td th:text="${Coddata.country}"/>
                <td th:text="${Coddata.state}"/>
                <td th:text="${Coddata.latestTotalCases}"/>
                <td th:text="${Coddata.diffFromPervDay}"/>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
